/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-11-30
 * Time: 10:46
 */
public class HashBucketTest {
    public static void main(String[] args) {
        HashBucket2<String,Integer> hashBucket2 = new HashBucket2<>();
        hashBucket2.push("shell",2);
        hashBucket2.push("smile",3);
        hashBucket2.push("yell",4);
        System.out.println(hashBucket2.getVal("shell"));
        System.out.println(hashBucket2.getVal("smile"));
        System.out.println(hashBucket2.getVal("yell"));
        System.out.println(hashBucket2.getVal("hello"));
    }
    public static void main1(String[] args) {
        HashBucket hashBucket = new HashBucket();
        hashBucket.push(31,999);
        hashBucket.push(49,888);
        hashBucket.push(42,777);
        hashBucket.push(53,666);
        System.out.println(hashBucket.getVal(31));
        System.out.println(hashBucket.getVal(49));
        System.out.println(hashBucket.getVal(42));
        System.out.println(hashBucket.getVal(53));
        System.out.println(hashBucket.getVal(999));
    }
}
